public class MatrixPatternAnalyzer extends Algorithm
Graph searching for bipartite subgraphs by analyzing the
matrices of said Graph.Algorithm.GraphSortOrderargs, counter, listener, PROP_PROGRESS| Constructor and Description |
|---|
MatrixPatternAnalyzer()
Deprecated.
Public constructor for initializing the analyzer.
|
| Modifier and Type | Method and Description |
|---|---|
private boolean |
checkNodeGroupings(Graph inGraph)
Deprecated.
Step 2: Iterate on Step 1 through all contiguous node groupings.
|
private Graph |
checkSubGraphs(Graph inGraph,
int transpositions)
Deprecated.
Step 3: Repeat Step 2 for each "Cornered" Sub-matrix of the original
Graph.
|
private boolean |
checkZeroMatrices(Graph inGraph,
int nodeCap)
Deprecated.
Step 1: Check for valid 0 Sub-matrices.
|
java.util.ArrayList<Graph> |
process(Graph graph)
Deprecated.
Processes data.
|
addPropertyChangeListener, cull, getGraphSortOrder, getPartiteNumber, removePropertyChangeListener, setGraphSortOrder, setPartiteNumber, setProgresspublic MatrixPatternAnalyzer()
public java.util.ArrayList<Graph> process(Graph graph)
Graph object in four steps. graph - the Graph object to search for Bipartite subgraphs.private Graph checkSubGraphs(Graph inGraph, int transpositions)
inGraph - private boolean checkNodeGroupings(Graph inGraph)
inGraph - the (sub) Graph object to check for bipartiteness.private boolean checkZeroMatrices(Graph inGraph, int nodeCap)
[ 0 0 0 0 1 ]This section of the code verifies that these contiguous regions exist. If they don't, the provided Graph object (or subgraph object in this case) is not Bipartite. This is the core comparison to be performed.
[ 0 0 0 1 1 ]
[ 0 0 0 1 0 ]
[ 0 1 1 0 0 ]
[ 1 1 0 0 0 ]
inGraph - the Graph object to check for valid 0
sub-matrices.nodeCap - the furthest node inward which the upperLeft Matrix should
extend to.